package com.zzxy.dao;

import com.zzxy.mybatis12sd.entity.User;

public class UserDaoImpl {
            SqlSession sqlSession;

    public UserDaoImpl(SqlSession sqlSession) {
        this.sqlSession = sqlSession;
    }

    public User findUserByDao(int id) {
        User user = sqlSession.selectone("findUserById",id);
        return user;
    }
}
